package com.tao.design.prototype;

/**
 * @projectName: DesignMode
 * @package: com.tao.design.prototype
 * @className: Prototype
 * @author: TT_Hugo
 * @description: 原型类，实现Cloneable接口
 * @date: 2022/12/26 18:26
 * @version: 1.0
 */
public class Prototype implements Cloneable{

    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public Object clone(){
        try {
          return super.clone();
        }catch (Exception e){
            e.printStackTrace();
            return null;
        }
    }
}
